/**    
 * @{#} ShenmingActivity.java Create on 2014年7月31日 下午1:23:57    
 *    
 * @author <a href="mailto:evan0502@qq.com">Evan</a>   
 * @version 1.0    
 */
package com.smiier.skin;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import cn.skinapp.R;

import com.smiier.skin.ui.BasicActivity;
import com.smiier.skin.utils.CommonUtility;

public class ShengmingActivity extends BasicActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_shengming);
		init();
		setNavTitle("使用条款和隐私政策");
		WebView webView = (WebView) findViewById(R.id.webView);
		boolean isDoctor = CommonUtility.isDoctor();
		WebSettings webSettings = webView.getSettings();
		webSettings.setJavaScriptEnabled(true);
		webSettings.setUseWideViewPort(true);
		webSettings.setLoadWithOverviewMode(true);
		// if (isDoctor) {
		webView.loadUrl("http://www.pifupro.com/pifu_agreement/pifu_agreement.html");
		// } else {
		// webView.loadUrl("http://www.pifupro.com/mifu_agreement/mifu_agreement.html");
		// }
		webView.setWebViewClient(new WebViewClient() {
			public boolean shouldOverrideUrlLoading(WebView view, String url) {
				view.loadUrl(url);
				return true;
			}
		});
	}

	/*
	 * @Override public void onResume() { super.onResume();
	 * MobclickAgent.onResume(getContext()); }
	 * 
	 * @Override public void onPause() { super.onPause();
	 * MobclickAgent.onPause(getContext()); }
	 */

}
